//园区总揽《总数据看板》相关接口
import api from '@/api/api'
// 查询园区总揽概况情况
const reqHeadData = () => {
	return api.get('/coczh/getHead')
}


// 查询《总》能源消耗统计
const reqEnergyData = () => {
	return api.get('/coczh/getNengYuan')
}

// 查询《总》消耗量统计(吨标煤)
const reqConsumeData = () => {
	return api.get('/coczh/getXiaodbm')
}


// 查询《总》综合能耗统计(吨标煤)
const reqConsumeStatisticsData = () => {
	//暂无
	return api.get('/coczh/getXiaodbm')
}


// 查询《总》能源产值能耗统计-产值能耗
const reqOutputValueData = (type = 0) => {
	return api.get(`/tradition/cockggs/getcz/${type}`)
}

// 查询《总》能源产值能耗统计-产值(co2排放量)
const reqCarbonData = (type = 0) => {
	return api.get(`/tradition/cockggs/gettanp/${type}`)
}
// 查询《总》能源产值能耗统计-钢结构能耗
const reqSteelData = (type = 0) => {
	return api.get(`/tradition/cockggs/getgang/${type}`)
}

// 查询《总》二氧化碳排放量
const reqCarbonEmission = (type = 1) => {
	return api.get(`/coczh/getco/${type}`)
}

// 查询《总》消耗量统计
const reqConsumeStatistics = (type = 0) => {
	return api.get(`/coczh/getXiaoh/${type}`)
}

// 查询《总》累计总价统计(万元)
const reqConsumeCostStatistics = (type = 0) => {
	return api.get(`/coczh/getLeij/${type}`)
}

const apiArr = [{
		value: 'reqHeadData',
		method: 'get'
	},

	{
		value: 'reqEnergyData',
		method: 'get'
	},

	{
		value: 'reqConsumeData',
		method: 'get'
	},
	{
		value: 'reqConsumeStatisticsData',
		method: 'get'
	},
	{
		value: 'reqOutputValueData',
		method: 'get'
	},
	{
		value: 'reqCarbonData',
		method: 'get'
	},
	{
		value: 'reqSteelData',
		method: 'get'
	},
	{
		value: 'reqCarbonEmission',
		method: 'get'
	},
	{
		value: 'reqConsumeStatistics',
		method: 'get'
	},
	{
		value: 'reqConsumeCostStatistics',
		method: 'get'
	},
]
export {
	reqHeadData,
	reqEnergyData,
	reqConsumeData,
	reqConsumeStatisticsData,
	reqOutputValueData,
	reqCarbonData,
	reqSteelData,
	reqCarbonEmission,
	reqConsumeStatistics,
	reqConsumeCostStatistics,

	apiArr
}